{include file="public/header" /}
<link rel="stylesheet" href="/static/index/css/page/my_team.css">
<body>
<div class="build-navbar" data-title="我的团队" data-transparent data-color="#fff" data-lcolor="#fff"></div>
<img src="/static/index/images//bg/bg_qbaotop@2x.png" alt="" class="img-top"/>
<div class="main">

    <div class="statistics flex items-center mx-30 mt-30 gap-26">
        <div class="item flex-1 p-30">
            <img src="/static/index/images/my_team/ic_tdtdzongyj@2x.png" alt="" class="icon"/>
            <div class="num mt-30">{$team_total}</div>
            <div class="title">团队总业绩</div>
        </div>
        <div class="item flex-1 p-30">
            <img src="/static/index/images/my_team/ic_tdtdzongrs@2x.png" alt="" class="icon"/>
            <div class="num mt-30">{$team}</div>
            <div class="title">团队总人数</div>
        </div>
    </div>
    <div class="list pb-30 tpl_list"></div>
</div>
</body>
<script type="text/html" id="template">
    {{#  layui.each(d.data, function(index, item){ }}
    <div class="item p-30 bg-white mt-30 mx-30 rounded-24">
        <div class="user flex items-center">
            <img src="{{= item.fresh.photo }}" alt="" class="avatar rounded-full"/>
            <div class="flex-1">
                <div class="flex items-center justify-between">
                    <div class="name flex items-center justify-center">{{= item.fresh.nickname }}
                        {{# if(item.fresh.level){ }}
                        <div class="level">
                            {{= item.fresh.level.title }}
                        </div>
                        {{# } }}
                    </div>
                    <div class="other">{{= item.fresh.mobile }}</div>
                </div>
                <div class="flex items-center justify-between">
                    <div class="other">推荐人</div>
                    <div class="tel">{{= item.fresh.parent_code }}</div>
                </div>
            </div>
        </div>
        <div class="big">
            <div class="con grid rounded-24 mt-30" >
                <div class="con-i">
                    <div class="title">个人业绩</div>
                    <div class="num">{{ item.fresh.my_total}}</div>
                </div>
                <div class="con-i">
                    <div class="title">团队总业绩</div>
                    <div class="num">{{item.fresh.team_total}}
                    </div>
                </div>
            </div>
        </div>
        <div class="create_time mt-30">
            注册时间：{{item.create_time}}
        </div>
    </div>
    {{#  }); }}
</script>
{include file="public/footer"/}
<script>
    layui.use(['methods'], function () {
        layui.methods.getFlowData('{:url("user/my_team")}');
    });
</script>
</html>